package com.wiz.weixin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wiz.weixin.to.BossWeixinConfigTO;
import com.wiz.weixin.to.ChargeTotalTO;
import com.wiz.weixin.to.FuellingTotalTO;
import com.wiz.weixin.to.OilTankTO;
import com.wiz.weixin.to.PrPriceTO;
import com.wiz.weixin.to.StationTO;

public interface StationMapper {
	
	/**
	 * 
	 * @return
	 */
	List<PrPriceTO> getFpPriceListByStation(@Param(value="stationStr")String stationStr);
	
	List<OilTankTO> getOilTankListByStation(@Param(value="stationStr")String stationStr);
	
	/**
	 * 充值总计
	 * @param stationStr
	 * @return
	 */
	List<ChargeTotalTO> getChargeTotalByStation(@Param(value="stationStr")String stationStr);
	
	/**
	 * 充值总计
	 * @param stationStr
	 * @return
	 */
	ChargeTotalTO getChargeSumByStation(@Param(value="stationId")String stationId);
	
	/**
	 * 加油总计
	 * @param stationStr
	 * @return
	 */
	List<FuellingTotalTO> getFuellingTotalByStation(@Param(value="stationStr")String stationStr,
			@Param(value="today")int today);
	
	/**
	 * 加油总计
	 * @param stationStr
	 * @return
	 */
	FuellingTotalTO getFuellingSumByStation(@Param(value="stationId")String stationId,
			@Param(value="today")int today);
	
	/**
	 * 班组加油总计
	 * @param stationStr
	 * @return
	 */
	List<FuellingTotalTO> getFuellingByGroup(@Param(value="stationStr")String stationStr,
			@Param(value="last")int last);
	
	/**
	 * 班组加油总计
	 * @param stationStr
	 * @return
	 */
	FuellingTotalTO getFuellingSumByGroup(@Param(value="groupNo")String groupNo);
	
	/**
	 * 获取老板配置信息
	 * @param openId
	 * @return
	 */
	List<BossWeixinConfigTO> getBossConfig(@Param(value="openId")String openId);
	
	/**
	 * 获取总部下所有油站
	 * @param hqId
	 * @return
	 */
	List<StationTO> getStationsByHqId(@Param(value="hqId")String hqId);
	
	int updateBindBossWx(@Param(value="openId")String openId,@Param(value="code")String code,
			@Param(value="wxHead")String wxHead, @Param(value="wxName")String wxName);
}
